package com.example.fete.Utils;

import android.os.Handler;

import java.lang.ref.WeakReference;

public class UIHandler<T> extends Handler {

    public WeakReference<T> reference;

    public UIHandler(T cls) {
        reference = new WeakReference<T>(cls);
    }

    public T getRef() {
        return reference != null ? reference.get() : null;
    }
}